//
//  HMTestViewController.swift
//  WeiBo
//
//  Created by Apple on 2017/5/30.
//  Copyright © 2017年 KY. All rights reserved.
//

import UIKit

class HMTestViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        view.backgroundColor = UIColor.orange
        addPushButton()
    }
    
    private func addPushButton() {
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, action: #selector(pushButtonAction))
    }
    
    //  MARK:   --push按钮点击事件
    @objc private func pushButtonAction() {
        let testVC = HMTestViewController()
        self.navigationController?.pushViewController(testVC, animated: true)
    }

}
